<script>
	import {getCode,sendCode,getUserInfo} from '@/service/app.js';
	import {sessionKey} from '@/utils/config.js';
	export default {
		onLaunch: function() {
			if(this.checkBrowsers()){ // 判断在H5页面下是否为微信内核打开
				uni.getSystemInfo({
					success: res => {
						uni.setStorageSync('systemInfo', res)
					}
				});
				let px = 'px';
				//#ifdef MP
				px = 'rpx'
				if (!uni.getStorageSync(sessionKey)) {
					this.token(res => {
						console.log('获取token' + res)
					})
				}
				//#endif
				uni.setStorageSync('px', px)
			}
		}
	}
</script>

<style>
	/*每个页面公共css */
	.bgc {
		min-height: 100vh;
		background-color: #FAFAFA;
	}
	.noBorder{
		border:0rpx
	}
	.inputBox{
		padding-left: 10rpx;
		margin-left: 10rpx;
	}
	.durk {
		width: 100vw;
		height: 100vh;
		background: rgba(0, 0, 0, 0.4);
		position: fixed;
		top: 0;
		left: 0;
		z-index: 1;
		overflow: hidden;
	}
	.btn-primary {
		background-color: #C89B4E !important;
		color: #fff;
	}
	.btn-foot {
		display: inline-block;
		padding: 0 70rpx;
		height: 80rpx;
		line-height: 80rpx;
		font-weight: 400;
		border-radius: 40rpx;
		position: fixed;
		left: 50%;
		/* #ifdef H5 */
		bottom: 80rpx;
		/* #endif */
		/* #ifdef MP */
		bottom: 14rpx;
		/* #endif */
		transform: translate(-50%, -50%);
		z-index: 1;
	}
</style>